<template>
	<view class="Meet_card" @click="clickMeetCard()" >
		<view class="icon">
			<view class="">
				<image class="image" v-if="myInfo.creator_avatar.length !== 0"  :src="myInfo.creator_avatar" mode=""></image>
				<image class="image" v-else src="@/static/images/index/avatar.png" mode=""></image>
			</view>
		</view>
		<view class="">
			<view class="details">
				<view class="tag">会议名称</view>
				<view class="name">{{myInfo.name}}</view>
			</view>
			<view class="details">
				<view class="tag">会议地点</view>
				<view> {{myInfo.meeting}}</view>
			</view>
			<view class="details">
				<view class="tag">会议时间</view>
				<view class="time">{{myInfo.date | timeFormat('MM-DD ')+' '+myInfo.startTime}} 至 {{myInfo.endTime}}</view>
			</view>

		</view><image class="state" v-if="myInfo.status === 0" src="@/static/images/meal/stay.svg" mode=""></image>
		<image class="state" v-else-if="myInfo.status === 1" src="@/static/images/meal/yes.svg" mode=""></image>
		<image class="state" v-else-if="myInfo.status === 2" src="@/static/images/meal/no.svg" mode=""></image>
	</view>
</template>

<script>
	export default {
		name: "MeetCard",
		props: {
			myInfo: Object,
		},
			
		data(){
			return{
			}
		},
		methods:{
			clickMeetCard(){
				this.$emit('clickMeetCard')
			}
		}
	}
</script>

<style lang="scss" scoped>
	
	.Meet_card {
		display: flex;
		// justify-content: space-between;
		position: relative;
		background-color: #FFFFFF;
		box-sizing: border-box;
		padding: 20px 30rpx 8px 30rpx;
		margin-top: 5px;
	
		.icon {
			width: 140rpx;
			box-sizing: border-box;
			text-align: center;
			margin-right: 20rpx;
	
			.image {
				margin-top: 16rpx;
				width: 120rpx;
				height: 120rpx;
				border-radius: 60rpx;
			}
		}
	
		.details {
			display: flex;
			font-size: 12px;
			color: #394954;
			margin-bottom: 12px;
				
			.name{
				width: 400rpx;
				overflow:hidden;
				
				text-overflow:ellipsis;
				
				white-space:nowrap;
			}
			.tag {
				flex-shrink:0;
				margin-right: 30rpx;
				color: #999999;
			}

				
			text{
				margin-right: 30rpx;
			}
		}
	
		.state {
			position: absolute;
			top: 12px;
			right: 24rpx;
			width: 100rpx;
			height: 100rpx;
		}
	}
</style>
